import { createApp, ref } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import Vue3VideoPlay from 'vue3-video-play';
import 'vue3-video-play/dist/style.css';

const loginState = ref(false);
const user_image=ref('https://s1.mintiny.com/wlake/i/2024/10/27/85i5h.png')
const app = createApp(App)
app.provide('login', loginState);
app.provide('user_image',user_image);



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(ElementPlus)
app.use(router)
app.use(Vue3VideoPlay)
app.mount('#app')